import React, { Component } from 'react'
import NumContext  from  "../Context";

export default class Child7 extends Component {
    static contextType = NumContext;//inject
  render() {
    return (
      <div>孙组件 {this.props.num}
        来自顶层的数据为{this.context.n};
      </div>
    )
  }
}
